/*
 *  Vec.h
 *  
 *
 *  Created by Daniel Condon on 23/08/12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef VEC_GAURD
#define VEC_GUARD

class Vec{
private:
	double x, y;
public:
	Vec();
	Vec(double, double);
	
	void setX(double);
	void setY(double);
	
	double getX();
	double getY();
	
	double getLen();
	
	Vec getUnit();
	
	Vec To(Vec);
	Vec From(Vec);
	double Dist(Vec);
	
	void Rotate(double);
	
	Vec operator+(Vec);
	Vec operator+=(Vec);
	Vec operator-(Vec);
	Vec operator-=(Vec);
	
	Vec operator*(double);
	Vec operator/(double);
	
	void clear();
};

#endif